package org.ix.gateway.route.presentation.mapper;

import org.ix.gateway.route.presentation.entity.GatewayRoutesVersionEntity;
import org.ix.gateway.route.presentation.entity.GatewayRoutesVersionEntityExt;
import org.ix.gateway.route.presentation.condition.GatewayRoutesVersionSelectCondition;
import org.ix.gateway.route.presentation.condition.GatewayRoutesVersionUpdateCondition;
import org.apache.ibatis.annotations.Mapper;

/**
 * 网关路由版本数据访问
 *
 * @author 郗世豪（rarexixi@sina.com）
 */
@Mapper
public interface GatewayRoutesVersionMapper extends BaseMapper<GatewayRoutesVersionEntity, GatewayRoutesVersionEntityExt, GatewayRoutesVersionUpdateCondition, GatewayRoutesVersionSelectCondition> {

    /**
     * 根据路由最新版本号
     *
     * @return 路由最新版本号
     * @author 郗世豪（rarexixi@sina.com）
     */
    Long getLastVersion();
}
